﻿@{
    ViewBag.Title = "ContentDetail";
    Layout = "~/Views/Shared/_Form.cshtml";
}


<script>
    var SPRId = request('SPRId');
    var SPLId = request('SPLId');
    var PCode = request('PStructId');
    var Flag = request('PictureFlag');
    $(function () {
        GetTable();
        if (Flag=="1") {
            $('#ImgDiv').removeAttr("hidden");
            GetIMGTable();
        }
    })
    function GetTable() {
        $.ajax({
            type: "GET",
            async: false,
            url: '../../PropertyManage/SecurityPatrol/GetContentDetail?SPRId=' + SPRId + '&SPLId=' + SPLId + '&PStructId=' + PCode,
            success: function (data) {
                
                $("#ContentDetail").html("");
                $("#ContentDetail").append(data);
            }
        });
    }
    function GetIMGTable() {
        $.ajax({
            type: "GET",
            async: false,
            url: '../../PropertyManage/SecurityPatrol/GetFileList?SPRId=' + SPRId + '&PStructId=' + PCode,
            success: function (data) {
                
                $("#ImgDetail").html("");
                $("#ImgDetail").append(data);
            }
        });
    }  
</script>
<style>
    li {
        position: relative;
        float: left;
        border: 1px solid gray;
        margin: 10px;
    }
        li img {
            height: 120px;
            width: 120px;
        }
  
</style>
<div style="margin-left: 10px; margin-top: 0px; margin-right: 30px;">
    <div style=" height: 100%; width: 100%; overflow: auto; ">
        <table class="table" id="ContentDetail"></table>
    </div>
    <div id="ImgDiv" hidden style="height: 100%; width: 100%; padding-left: 15px;">
        <h6>附件：</h6>
        <ul id="ImgDetail">
        </ul>
    </div>
   
</div>
